<extend name="Public/common"/>
<block name="othercss">
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
</block>
<block name="body">
 <div class="mian" style="background-color: #f4f4f4;padding-bottom: 60px">
    <div class="box">
        <div class="clearfix syt-header">
  
        </div>
        <div class="syt-body">
            <div class="t1">扫一扫登录</div>
 
            <div class="syt-box">
                <div class="imgs">
               
                    <img src="{$qrcode}" width="315" height="315"/>
                </div>
                <div class="sao">
                    <img src="{$theme_path}/images/sao.jpg" width="50" height="50"/>
                    <div class="sao-lans">打开手机微信
                        扫一扫登录网站</div>
                </div>
            </div>
        </div>
    </div>
</div>
</block>
<block name="otherjs">
<script type="text/javascript">
function viewInExplorerStatus() {
var url_login_status = "{:urlrotue('PayWechat/login_status')}"
//alert(url_login_status+"?rand_code={$rand_code}&n="+Math.random());
$.ajax({
	  url: url_login_status+"?rand_code={$rand_code}&n="+Math.random(),
			success:function(val)
			{
				
			if($.trim(val)=='1'){
			 $('#msg').html('登录成功');
			  window.location.href="{:urlrotue('Register/bind_tips')}";
			 //做链接跳转
			}else if($.trim(val)=='2'){
			 $('#msg').html('登录成功');
			  window.location.href="{:urlrotue('/')}";
			 }
			 $('#msg').html(val);
 　　　　　　　　 setTimeout("viewInExplorerStatus()",1000);
			}
	});	
	
}
viewInExplorerStatus();
</script>
</block>

